package com.huilian.iotbox.mqtt.server.base.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.MemberStoreBalanceDto;
import com.huilian.iotbox.data.po.MemberStoreBalance;
import com.huilian.iotbox.data.vo.MemberStoreBalanceVo;

/**
 * @author 谢洛涛
 * @date 2021/3/31 13:14
 */
public interface MemberStoreBalanceService {

    MemberStoreBalanceVo findBalance(MemberStoreBalanceDto memberStoreBalanceDto);

    void insert(MemberStoreBalance memberStoreBalance);

    MemberStoreBalance findOneMemberStoreBalanceById(Long memberStoreBalanceId);

    int addMemberStoreChargeBalance(int i, MemberStoreBalance memberStoreBalance);

    MemberStoreBalance addOrReduceMemberStoreChargeBalanceBeforeCheckParam(MemberStoreBalance memberStoreBalance);
}
